import request from '@/utils/request'

// 查询检查流水表列表
export function listCheckrecord(query) {
  return request({
    url: '/outpatient/checkrecord/list',
    method: 'get',
    params: query
  })
}

export function showAll(query) {
  return request({
    url: '/outpatient/checkrecord/showAll',
    method: 'get',
    params: query
  })
}

export function getDPCList() {
  return request({
    url: '/outpatient/checkrecord/getDPCList',
    method: 'get'
  })
}

export function getDPCListYan() {
  return request({
    url: '/outpatient/checkrecord/getDPCListYan',
    method: 'get'
  })
}
// 查询检查流水表详细
export function getCheckrecord(checkrecordId) {
  return request({
    url: '/outpatient/checkrecord/' + checkrecordId,
    method: 'get'
  })
}


export function getCheckrecordYan(checkrecordId) {
  return request({
    url: '/outpatient/checkrecord/yan/' + checkrecordId,
    method: 'get'
  })
}

// 新增检查流水表
export function addCheckrecord(data) {
  return request({
    url: '/outpatient/checkrecord',
    method: 'post',
    data: data
  })
}

export function addCheckrecordYan(data) {
  return request({
    url: '/outpatient/checkrecord/addYan',
    method: 'post',
    data: data
  })
}
// 修改检查流水表
export function updateCheckrecord(data) {
  return request({
    url: '/outpatient/checkrecord',
    method: 'put',
    data: data
  })
}

export function updateCheckrecordYans(data) {
  return request({
    url: '/outpatient/checkrecord/updateCheckRecordYan',
    method: 'put',
    data: data
  })
}
// 删除检查流水表
export function delCheckrecord(checkrecordId) {
  return request({
    url: '/outpatient/checkrecord/' + checkrecordId,
    method: 'delete'
  })
}
